package com.softserveinc.moviedbapp.provider;

public enum MovieListType {
	TITLE(0), RELEASE_DATE(1), RATING(2), SEARCH(3);

	private int listTypeInt;

	private MovieListType(final int listT) {
		listTypeInt = listT;
	}

	public int getListTypeInt() {
		return listTypeInt;
	}

	public static MovieListType fromValue(final int value) {
		for (MovieListType style : MovieListType.values()) {
			if (style.listTypeInt == value) {
				return style;
			}
		}
		return null;
	}
}
